Embedding youtube in a blog post?

Events happening in the community are now at Drupal community events on www.drupal.org.
bob_irving's picture

I'm trying to embed a great new video concerning 21st century education on my blog on my drupal site. I did some research and found someone saying if you disable rich text format and allow the , , and tags in filtered html, it should work.

But it's not. Can this only be done via a particular module? I'm using Drupal 5.7.

Thanks in advance.

Comments

What about Full HTML mode

ebrittwebb's picture

I've embedded YouTube videos in my Drupal blog posts by using the Full HTML input filter.

Erik Britt-Webb
drupal@ebrittwebb.com

The emfield works well too

btopro's picture

If you'd want a solution with less coding you can also set up an Embedded Media Field. This will figure out what HTML to write for you and you can define what video services you want to allow people to point to so you can do google, youtube, and a lot of other ones. It also has some stuff for audio and images to be fed in from external sources should you need that functionality in the future (Flickr and the like).


"Moodle? What's moodle?"

http://elearning.psu.edu/
http://elearning.psu.edu/projects
http://drupal.org/project/outline_designer
http://drupal.org/project/html_export
http://elearning.psu.edu/sea

TinyMCE will clobber embed code

bonobo's picture

All of the feedback given here is good -- in addition to that, if you are using a rich text editor, you need to pay close attention to how you add the embed code -- if you do it using the "add flash" button, you'll be fine (provided, of course, you are using full html or have allowed the object and embed tags to your default html filter)

If, however, you disable the rich text editor, paste in the embed code, and then re-enable the text editor, your embed code will get sanitized -- I have seen this with TinyMCE -- I don't know if this is how FCKEditor works as well --

And all of this points to my favorite default: the Embedded Media field. WYSIWYG often create more problems than they solve.

Cheers,

Bill


FunnyMonkey
Tools for Teachers

Thanks, it's working! I

bob_irving's picture

Thanks, it's working!

I installed the Embedded Media Field module and did some configuring of that. Voila! Now I need to figure out how to have both the embedded media and my own thoughts in a blog entry. The TinyMCE editor might be the culprit here, though I can't get it to work whether I disable rich text or not.

Drupal in Education

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

Hot content this week